﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Dynamic;
using WebCommit.Common.Mvc.BaseClass;

namespace WebCommit.Web.Controllers
{
	public class TestController : BaseController
    {
        //
        // GET: /Default1/

        public ActionResult Index()
        {
			string referer = this.Request.ServerVariables["Http_Referer"];
			//referer = this.Request.UrlReferrer.AbsoluteUri;
			dynamic obj = new ExpandoObject();
			obj.Referer = referer;
			obj.Url = Server.UrlDecode(Request.QueryString["url"]);
			obj.Title = Server.UrlDecode(Request.QueryString["title"]);
			return View(obj);
        }
    }
}
